package com.woniu.springbootshiro.mapper;

import com.woniu.springbootshiro.pojo.AlarmLight;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface AlarmLightMapper extends tk.mybatis.mapper.common.Mapper<AlarmLight> {
    @Select("select pid,`check`,id,num,`name`,`type`,`time`,`status`,oper from alarm_light")
    List<AlarmLight> queryAllAlarmLight();

    @Update("update alarm_light set status='已处理' where id=#{id}")
    int updateAlarm(Integer id);
}
